<template>
	<view>
		<iframe :src="url" frameborder="0" class="iframa-content"></iframe>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url:""
			}
		},
		onLoad(option){
			// console.log(option)
			let tempUrl = option.u
			for(let key in option){
				if(option.hasOwnProperty(key) && key != "u"){
					// console.log(key, obj[key])
					tempUrl = `${tempUrl}&${key}=${option[key]}`
				}
			}
			this.url = tempUrl
			// console.log(this.url)
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
.iframa-content{
	width: 100%;
	height: 90vh;
}
</style>
